import axios from ".";

export const deleteFile = (url: string) => {
	return axios.delete("/public/delete", { params: { url } });
};
export const createBlog = (content: string, image: (string | undefined)[]) => {
	return axios.post("/blog/create", { content, image });
};
export const getUserinfoById = (id: number) => {
	return axios.get(`/user/getuserinfo/${id}`);
};
